<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background: red;
            transition: all .3s;
        }

        div:hover {
            left: 100px;
        }
    </style>
</head>

<body>
    <div>123</div>
    <span>12453</span>
</body>
<script>
    var a = 12345
    var div = document.querySelector('div')
</script>

</html>